<h1>Editing attachment</h1>

<% form_for :attachment, :url => { :action => 'update' } do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :id %><br />
    <%= f.text_field :id %>
  </p>
  <p>
    <%= f.label :type %><br />
    <%= f.text_field :type %>
  </p>
  <p>
    <%= f.submit "Update" %>
  </p>
<% end %>

<%= link_to 'Show', attachment_url(@attachment) %> |
<%= link_to 'Back', attachments_path %>
